{% extends 'content/base.html' %}
{% load thumbnail %}
{% block content %}
    <div class="row">
        <div class="col-md-6">
            {% thumbnail goods_image "200x200" crop="center" as im %}
                <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
            {% endthumbnail %}
        </div>
        {# 右侧栏内容 #}
        <div class="col-6">
            {# 标题#}
            <div class="row">
                <div class="col-md-6">
                    {{ goods_name }}
                </div>
            </div>
            {# 销量#}
            <div class="row">
                <div class="col-md-6">
                    销量：{{ goods_sales }}
                </div>
            </div>
            {# 优惠#}
            <div class="row">
                <div class="col-md-6">
                    优惠：{{ coupon_value }}
                </div>
            </div>
            {# 价格#}
            <div class="row">
                <div class="col-md-3">
                    价格：{{ goods_price }}
                </div>
            </div>
            {# 领券地址#}
            <div class="row">
                <div class="col-md-3">
                    <a href="{{ goods_coupon_spread_url }}">点击领券</a>
                </div>
            </div>
        </div>
    </div>

{% endblock content %}